package cn.tedu.xxmall.security;

import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

import java.util.Collection;

/**
 * @author : Jimmy
 * @date : 2022-08-27 16:13
 **/
@Getter
@Setter
@EqualsAndHashCode
@ToString(callSuper = true)
public class AdminDetail extends User {

    private Long id;

    public AdminDetail(String username, String password, boolean enabled,
                       Collection<? extends GrantedAuthority> authorities) {
        super(username, password, enabled, true,
                true, true, authorities);
    }
}
